<%@ Control Language="C#"  %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<swf:BizProc runat="server" ID="cpArt2" factoryName="genericArticles">
	<ParentBizProc id="pArt1" fieldName="id" dataId="pid"  />
</swf:BizProc>
<div id="article" class="articlebox">
	<div id="Div1" class="articlebox">
		<h4><swf:ReadOnlyText CssClass="title" ID="title" runat="server" /></h4>
		<p></p>
		<div class="mainMediaArea">
			<asp:HyperLink CssClass="media" ID="primaryPicture_name" runat="server" ImageUrl="/$mediaCacheName$/SmallMedium/$primaryPicture.name$" EnableViewState="false"/><br />
			<swf:ReadOnlyText CssClass="summary" ID="summary" runat="server" />
		</div>
		<swf:ReadOnlyText CssClass="body" ID="body" runat="server"  Width="100%" Height="100%" />
	</div>
</div>
<h3><asp:Label ID="lblCArtLabel" runat="server" >Photo Album</asp:Label></h3>
<div id="childArticles">
	<snc:ComplexBizObjListDisplay ID="relatedArticles" runat="server" 
		ReadOnlyTemplate="Articles.Gui.AspNet.ArticleListDisplay-PictureOnly"
		ParentBizProcIds="cpArt2" >
		<macros>
			<Entry name="imageRes" type="String">SmallThumbnail</Entry>
			<Entry name="navLink" type="String">ArticleView.aspx?gArt1pid=$pid$&amp;gArt1id=$pid$</Entry>
		</macros>
	</snc:ComplexBizObjListDisplay>
</div>
